<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>手机站系统参数设置</title>
    {template 'stourtravel/public/public_js'}
    {php echo Common::getCss('style.css,base.css,base_new.css'); }
    {php echo Common::getScript('config.js');}
    {php echo Common::getScript("uploadify/jquery.uploadify.min.js"); }
    {php echo Common::getCss('uploadify.css','js/uploadify/'); }
</head>

<body>

<table class="content-tab">
    <tr>
        <td width="119px" class="content-lt-td"  valign="top">
            {template 'stourtravel/public/leftnav'}
            <!--右侧内容区-->
        </td>
        <td valign="top" class="content-rt-td">
            <form id="configfrm">
                <div class="w-set-con">
                    <div class="cfg-header-bar">

                        <a href="javascript:;" class="fr btn btn-primary radius mr-10 mt-6" onclick="window.location.reload()">刷新</a>
                    </div>
                    <div class="w-set-nr">

                        <div id="m_basic_div" class="mitem">
                            <ul class="info-item-block">
                                <li>
                                    <span class="item-hd">默认首页{Common::get_help_icon('cfg_m_start_version')}：</span>
                                    <div class="item-bd">
                                        <label class="radio-label"><input type="radio" value="0" {if !$config['cfg_m_default_client']}checked{/if} name="cfg_m_default_client" >web-h5</label>
                                        <label class="radio-label ml-20"><input type="radio" value="1" {if $config['cfg_m_default_client']==1}checked{/if}  name="cfg_m_default_client" >uni-h5</label>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div class="clear clearfix">
                            <a class="btn btn-primary size-L radius w100 ml-115" href="javascript:;" id="btn_save">保存</a>
                            <input type="hidden" name="webid" id="webid" value="0">
                        </div>

                    </div>
                </div>
            </form>
        </td>
    </tr>
</table>


<script>
    $(document).ready(function () {
        //配置信息保存
        $("#btn_save").click(function () {
            var webid = $("#webid").val();
            Config.saveConfig(webid, function () {
                ST.Util.showMsg('保存成功', 4, 1000);
            });
        });
    });
</script>
</body>
</html>
